package com.heihx.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@Schema(description = "分页请求订单时传递的数据模型")
public class OrdersPageQueryDTO implements Serializable {

    @Schema(description = "页码")
    private int page;

    @Schema(description = "页面大小")
    private int pageSize;

    @Schema(description = "订单号")
    private String number;

    @Schema(description = "顾客手机号码")
    private  String phone;

    @Schema(description = "订单状态")
    private Integer status;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "订单开始时间")
    private LocalDateTime beginTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "订单结束时间")
    private LocalDateTime endTime;

    @Schema(description = "顾客id")
    private Long userId;

}
